/**
 * FileName: AddressController
 *
 * @author: 阿张
 * Date:     2021/2/27 10:40
 */
package com.qx.controller;

import com.qx.service.ScAddressService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import result.Result;
import result.ResultFactory;

import javax.annotation.Resource;

@RestController
@RequestMapping
public class AddressController {

    @Resource
    private ScAddressService scAddressService;

    @RequestMapping(value = "getDefaultAddress",method = RequestMethod.GET)
    public Result getDefaultAddress(){
        return ResultFactory.buildSuccessResult(scAddressService.getDefaultAddress(1));
    }

}
